import "./Main.css"
import Item from "../Item/Item";
/*
* 从props中解构出父组件传递过来的todoList
* */
const Main = ({todoList}) => {
    return (
        <div className="main">
            {
                todoList.map(todo => (<Item key={todo.id} todo={todo}></Item>))
            }
        </div>
    )
}


export default Main
